package com.zhyonk.common.exception;


import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler;
import com.alibaba.csp.sentinel.slots.block.BlockException;

public class SentinelException extends Exception{

    public static String exceptionHandler(BlockException exception){
        System.out.println(exception.getRuleLimitApp());
        System.out.println(exception.fillInStackTrace());
        return "error";
    }
}
